Find unique character in a string leetcode